package cn.scy.business.controller.guangzlt;

import cn.scy.base.PageResult;
import cn.scy.base.ResponseDTO;
import cn.scy.business.domain.param.guangzlt.NumReportInfoParam;
import cn.scy.business.domain.vo.guangzlt.NumReportInfoVO;
import cn.scy.business.service.guangzlt.NumReportInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 广州联通
 * 报备管理-报备信息表 前端控制器
 *
 * @author scy
 * @since 2025-04-26
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/num/report")
public class NumReportInfoController {

    private final NumReportInfoService reportInfoService;

    @PostMapping("listPage")
    public ResponseDTO<PageResult<NumReportInfoVO>> listPage(@RequestBody NumReportInfoParam param) {
        return ResponseDTO.ok(reportInfoService.listPage(param));
    }

    @PostMapping("delete")
    public ResponseDTO<Boolean> deleteReport(@RequestParam("id") String id) {
        return ResponseDTO.ok(reportInfoService.deleteReport(id));
    }

}
